/*
 * @Author: Haochen
 * @Date: 2021-12-25 15:41:57
 * @LastEditTime: 2021-12-25 15:45:25
 * @FilePath: \recipes-admin-system\src\api\modules\vip.js
 */

import axios from 'axios';

export default {
  getAllMembers() {
    return axios({
      url: '/member/getAllMembers',
      method: 'GET',
    });
  },

  deleteMember(data) {
    return axios({
      url: '/member/delMember',
      method: 'POST',
      data,
    });
  },

  updateMemberToVip(data) {
    return axios({
      url: '/member/updateMemberToVip',
      method: 'POST',
      data,
    });
  },

  cancelMember(data) {
    return axios({
      url: '/member/cancleMember',
      method: 'POST',
      data,
    });
  },
};
